package org.elanfox.intellicommunity.biz.repository.msg;

import org.elanfox.intellicommunity.biz.entity.msg.NodeMsgPO;
import org.elanfox.intellicommunity.data.base.base.JpaSearchableRepository;
import org.springframework.stereotype.Repository;

/**
 * @author allan
 * @version 1.0.0
 * @date 2019/12/19
 */
@Repository
public interface NodeMsgRepository extends JpaSearchableRepository<NodeMsgPO, Long> {
    NodeMsgPO findTop1ByUserIdOrderByCreateTimeDesc(Integer userId);
}
